package DataModel
{
	
	public class ObservationsOpinions
	{
		private var m_intNoteRef:int;
		private var m_strObservation:String;
		private var m_strOpinion:String;
		private var m_intRelatedSection:int;

		public static function compare(lhs:Object, rhs:Object):int
		{
			return (lhs as ObservationsOpinions).m_intNoteRef - (rhs as ObservationsOpinions).m_intNoteRef;
		}

		public function ObservationsOpinions(intNoteRef:int = 0, 
											 strObservation:String = "", 
											 strOpinion:String="",
											 intRelatedSection:int = -1)
		{
			m_intNoteRef = intNoteRef;
			m_strObservation = strObservation;
			m_strOpinion = strOpinion;
			m_intRelatedSection = intRelatedSection;
		}

		public function get noteRef():int
		{
			return m_intNoteRef;
		} 
		public function set noteRef(intVal:int):void
		{
			m_intNoteRef = intVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}
		
		public function get observation():String
		{
			return m_strObservation;
		} 
		public function set observation(strVal:String):void
		{
			m_strObservation = strVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}

		public function get opinion():String
		{
			return m_strOpinion;
		} 
		public function set opinion(strVal:String):void
		{
			m_strOpinion = strVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}

		public function get relatedSection():int
		{
			return m_intRelatedSection;
		} 
		public function set relatedSection(intVal:int):void
		{
			m_intRelatedSection = intVal;
			SkillsAuditDocument.instance.dirtyForm = true;
		}

	}
}